
package com.monlyu.bo.model;

import java.util.List;

import com.monlyu.util.BeanUtil;
import com.monlyu.util.DateUtil;
import com.monlyu.vo.Manuscript;

public class ManscripModel {

    private String author;
    private String otherAuthor;
    private String title;
    private String createDate;
    private String column;
    private String category;
    private String source;
    private String tags;
    private String imageCount;
    private String content;
    private List<AuditList> audits;
    private List<ImageModel> imageModels;
    private String comment;
    
    public ManscripModel() {}

    public ManscripModel(Manuscript manuscript) {
        this.author = manuscript.getUser().getName();
        this.title = manuscript.getTitle();
        this.createDate = DateUtil.format(manuscript.getCreateDate(), DateUtil.DATE_PATTERN);
        this.column = BeanUtil.getEnumKey(manuscript.getColumn()).toString();
        this.category = BeanUtil.getEnumKey(manuscript.getCategory()).toString();
        this.source = manuscript.getRemark();
        this.tags = manuscript.getTags();
        this.content = manuscript.getContent();
        this.comment = manuscript.getComment();
    }

    public String getAuthor(){
        return author;
    }

    public void setAuthor(String author){
        this.author = author;
    }

    public String getOtherAuthor(){
        return otherAuthor;
    }

    public void setOtherAuthor(String otherAuthor){
        this.otherAuthor = otherAuthor;
    }

    public String getTitle(){
        return title;
    }

    public void setTitle(String title){
        this.title = title;
    }

    public String getCreateDate(){
        return createDate;
    }

    public void setCreateDate(String createDate){
        this.createDate = createDate;
    }

    public String getColumn(){
        return column;
    }

    public void setColumn(String column){
        this.column = column;
    }

    public String getCategory(){
        return category;
    }

    public void setCategory(String category){
        this.category = category;
    }

    public String getSource(){
        return source;
    }

    public void setSource(String source){
        this.source = source;
    }

    public String getTags(){
        return tags;
    }

    public void setTags(String tags){
        this.tags = tags;
    }

    public String getImageCount(){
        return imageCount;
    }

    public void setImageCount(String imageCount){
        this.imageCount = imageCount;
    }

    public String getContent(){
        return content;
    }

    public void setContent(String content){
        this.content = content;
    }

    public List<AuditList> getAudits(){
        return audits;
    }

    public void setAudits(List<AuditList> audits){
        this.audits = audits;
    }

    
    public List<ImageModel> getImageModels(){
        return imageModels;
    }

    
    public void setImageModels(List<ImageModel> imageModels){
        this.imageModels = imageModels;
    }

    
    public String getComment(){
        return comment;
    }

    
    public void setComment(String comment){
        this.comment = comment;
    }
}
